﻿
namespace DL
{
    public class BlackboardEntry<T>
    {
        public BlackboardEntry(GameBlackboardKey key, T value)
        {
            Key = key;
            Value = value;
            ValueType = typeof(T);
        }

        public GameBlackboardKey Key { get; }
        public T Value { get; }
        public System.Type ValueType { get; }

        public override int GetHashCode() => Key.GetHashCode();
        public override bool Equals(object obj) => obj is BlackboardEntry<T> ohter && ohter.Key == Key;
    }
}